-
Notifications
You must be signed in to change notification settings - Fork 1
[PRMP-1083] Clean up Lambda Errors and Exceptions #977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
lambdas/enums/lambda_error.py
Outdated
| } | ||
|
|
||
| DocumentReviewDB = { | ||
| "err_code": "UDR_5001", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we created UDR error code for update document reference errors, should you use DRV here ( if it stands for document review) ? and on line 540
lambdas/enums/lambda_error.py
Outdated
| UpdateDocStatusUnavailable = { | ||
| "err_code": "DRV_4003", | ||
| "err_code": "UDR_4001", | ||
| "message": "This Document is not available for review update", | ||
| "fhir_coding": FhirIssueCoding.FORBIDDEN, | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be DocumentReviewStatusUnavailable?
or something that starts with DocumentReview, so it is consistent with the other errors in this group?
lambdas/enums/lambda_error.py
Outdated
| SearchDocumentInvalidQuerystring = { | ||
| "err_code": "SDR_4002", | ||
| "message": "Invalid query string passed", | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SearchDocumentInvalidQueryString I suppose
Code security issues foundView full details here. |
|



Overview
Jira ticket: PRMP-1083
Description
As a Developer, I want to replace duplicated and overly specific exception classes with a set of generic, reusable errors So that the codebase is easier to maintain, the API responses are consistent, and we reduce unnecessary boilerplate code.
Context
Review Feature tidy up
Checklist
Tasks for all changes:
I have run git pre-commits.(WIP)[ ] 4. I have updated relevant documentation.Deploy - Sandbox- workflow runSANDBOX Full- Deploy feature branch to sandbox- workflow run